package com.woniuxy.dao;

import com.woniuxy.pojo.MerchantCommission;
import com.woniuxy.pojo.PreOrder;
import com.woniuxy.vo.CommissionVo;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;
import java.util.List;

public interface MerchantCommissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MerchantCommission record);

    int insertSelective(MerchantCommission record);

    MerchantCommission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MerchantCommission record);

    int updateByPrimaryKey(MerchantCommission record);

    List<MerchantCommission> findCommissionByuid(CommissionVo commissionVo);
    @Update("update merchant_commission set pcId=#{pcid} ,location=#{location} ,Commission=#{commission} " +
            "where orderId=#{orderid} ")
    void updateByPrimary(MerchantCommission merchantCommission);
   @Select("select Commission from merchant_commission where muid=#{id}")
    List<BigDecimal> findMerchantusersMoney(Integer id);
}